Skip to content

Commit

Permalink
Add optional
Browse files Browse the repository at this point in the history
Co-authored-by: tommasini <46944231+tommasini@users.noreply.github.com>
  • Loading branch information
NicolasMassart and tommasini authored Oct 24, 2024
1 parent 90a4c02 commit 1e00dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/migrations/056.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function migrate(state: unknown) {
const decommisionedIpfsGateway = 'https://cloudflare-ipfs.com/ipfs/';
const newDefaultIpfsGateway = 'https://dweb.link/ipfs/';

if (decommisionedIpfsGateway === preferencesController.ipfsGateway) {
if (decommisionedIpfsGateway === preferencesController?.ipfsGateway) {
preferencesController.ipfsGateway = newDefaultIpfsGateway;
}
// Return the modified state
Expand Down

0 comments on commit 1e00dcf

Please sign in to comment.