Skip to content

Commit

Permalink
fix: convert hex to utf 8
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Aug 9, 2022
1 parent dbdcaed commit cb6e619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/datalayer-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const encodeHex = (str) => {
};

export const decodeHex = (str = '') => {
return Buffer.from(str.replace('0x', ''), 'hex').toString();
return Buffer.from(str.replace('0x', ''), 'hex').toString('utf8');
};

export const decodeDataLayerResponse = (data) => {
Expand Down

0 comments on commit cb6e619

Please sign in to comment.