Skip to content

Commit 86dc669

Browse files
authored
Fix wrong parsing of decimal rezo-labs#73
Issue: rezo-labs#73
1 parent 146cd29 commit 86dc669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ export default defineComponent({
127127
128128
errorMsg.value = null;
129129
130-
if (['integer', 'decimal', 'bigInteger'].includes(props.type)) {
130+
if (['integer', 'bigInteger'].includes(props.type)) {
131131
return parseInt(res) || 0;
132132
}
133-
if (['float'].includes(props.type)) {
133+
if (['float', 'decimal'].includes(props.type)) {
134134
return parseFloat(res) || 0;
135135
}
136136
return res;

0 commit comments

Comments
 (0)