Skip to content

Commit

Permalink
fix request img url (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed Feb 26, 2021
1 parent 12a5cf5 commit c51374a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/redux/requests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { filter, get, omit, values } from 'lodash';
import { maybeSignUri } from '@rainbow-me/handlers/imgix';
import {
getLocalRequests,
removeLocalRequest,
Expand Down Expand Up @@ -49,7 +50,9 @@ export const addRequestToApprove = (
logger.log('request expired!');
return;
}
const imageUrl = dappLogoOverride(peerMeta.url) || get(peerMeta, 'icons[0]');
const unsafeImageUrl =
dappLogoOverride(peerMeta.url) || get(peerMeta, 'icons[0]');
const imageUrl = maybeSignUri(unsafeImageUrl);
const dappName =
dappNameOverride(peerMeta.url) || peerMeta.name || 'Unknown Dapp';
const dappUrl = peerMeta.url || 'Unknown Url';
Expand Down

0 comments on commit c51374a

Please sign in to comment.