mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 02:00:29 +08:00
15 lines
280 B
JavaScript
15 lines
280 B
JavaScript
/**
|
|
* getReliability
|
|
* retrieves reliability value as string
|
|
*/
|
|
|
|
export const getReliability = (reliabilityValue) => {
|
|
if (reliabilityValue === null) {
|
|
return 'neutral';
|
|
} else if (reliabilityValue) {
|
|
return 'reliable';
|
|
} else {
|
|
return 'unreliable';
|
|
}
|
|
};
|