Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hive
hive-dapps
Commits
a14c7ef0
Commit
a14c7ef0
authored
Aug 25, 2021
by
therealwolf
💯
Browse files
fix
parent
b5c8c9dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/src/helpers/convert.ts
View file @
a14c7ef0
...
...
@@ -32,8 +32,8 @@ export let add_values = (values) => {
for
(
let
v
of
values
)
{
for
(
let
key
of
Object
.
keys
(
v
))
{
if
(
!
x
[
key
])
x
[
key
]
=
0
;
x
[
key
]
+=
v
[
key
];
x
[
key
]
=
parseFloat
(
x
[
key
].
toFixed
(
3
));
x
[
key
]
+=
v
[
key
]
?
v
[
key
]
:
0
;
x
[
key
]
=
x
[
key
]
?
parseFloat
(
x
[
key
].
toFixed
(
3
))
:
x
[
key
]
;
}
}
x
=
get_change
(
x
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment