Skip to content

Commit c6bee66

Browse files
committed
feat(wallet): fw-6767 format twitter cookies as string
1 parent 8c7c287 commit c6bee66

File tree

1 file changed

+3
-2
lines changed
  • packages/mask/popups/pages/Wallet/SyncTwitterCookies

1 file changed

+3
-2
lines changed

packages/mask/popups/pages/Wallet/SyncTwitterCookies/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ async function getTwitterCookiesString(): Promise<string> {
5454
.filter((x) => x.status === 'fulfilled')
5555
.map((x) => (x as PromiseFulfilledResult<{ key: string; value?: string }>).value)
5656
.filter((x) => x.value !== undefined)
57-
.reduce((acc, x) => ({ ...acc, [x.key]: x.value }), {})
58-
return JSON.stringify(cookies)
57+
.map((x) => `${x.key}=${x.value}`)
58+
.join('; ')
59+
return cookies
5960
}
6061

6162
enum DesktopSyncChannelStatus {

0 commit comments

Comments
 (0)