Skip to content

Commit

Permalink
Fix base64 decode
Browse files Browse the repository at this point in the history
  • Loading branch information
neokry committed Sep 1, 2023
1 parent 4e93ad0 commit 48efb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/utils/encodePageNumToEndCursor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { encodePageNumToEndCursor } from './encodePageNumToEndCursor'

const decode = (cursor: string) => {
let decoded = ''
for (const char of Buffer.from(cursor)) {
for (const char of Buffer.from(cursor, 'base64')) {
decoded += String.fromCharCode(char)
}
return decoded
Expand Down

0 comments on commit 48efb80

Please sign in to comment.