parent
6ad9ebb19e
commit
7bb9250877
@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
function formatPreferredWordScore(input, customFormatsLength = 0) {
|
|
||||||
const score = Number(input);
|
|
||||||
|
|
||||||
if (score > 0) {
|
|
||||||
return `+${score}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (score < 0) {
|
|
||||||
return score;
|
|
||||||
}
|
|
||||||
|
|
||||||
return customFormatsLength > 0 ? '+0' : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
export default formatPreferredWordScore;
|
|
Loading…
Reference in new issue