Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Use local storage instead of cookies #687

Closed
wants to merge 5 commits into from
Closed

Use local storage instead of cookies #687

wants to merge 5 commits into from

Conversation

loeck
Copy link
Contributor

@loeck loeck commented Aug 30, 2017

Related to #681

const passphrase = Cookies.get('passphrase');
const network = parseInt(Cookies.get('network'), 10) || 0;
const address = localStorage.getItem('address') || '';
const passphrase = localStorage.getItem('passphrase') || '';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The || '' it's only for avoid null in <Input /> (because localStorage.getItem return null if value not exist)

@slaweet
Copy link
Contributor

slaweet commented Aug 30, 2017

Hi @Lohek, it's nice of you to contribute to Lisk and your code is sound, but please respect when an issue is assigned to someone. You can ask on our Gitter: https://gitter.im/LiskHQ/lisk if you want to work on some issue.

@loeck
Copy link
Contributor Author

loeck commented Aug 30, 2017

Aww sorry, i work on this before the assignment... and after that, i don't check ^^'
But yes, i join Gitter, it's more simple.

@slaweet
Copy link
Contributor

slaweet commented Aug 30, 2017

I assigned the issue when creating it. I've opened my PR which also fixes e2e test to make Jenkins pass and I'm closing this PR.

@slaweet slaweet closed this Aug 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants