Skip to content

Commit ca81174

Browse files
fix: replace substr by substring
Co-authored-by: pjt <26487010+PierreJeanjacquot@users.noreply.github.com>
1 parent 13b9bb3 commit ca81174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const taskResultToObject = (results?: string | null) => {
1717
try {
1818
if (results && results !== '0x') {
1919
resultObj = JSON.parse(
20-
Buffer.from(results.substr(2), 'hex').toString('utf8')
20+
Buffer.from(results.substring(2), 'hex').toString('utf8')
2121
);
2222
}
2323
} catch {

0 commit comments

Comments
 (0)