Toast now defaults to app icon for avatar

This commit is contained in:
Gregory Schier 2020-01-09 10:57:58 -05:00
parent 379d7eb07e
commit efb8fb6c70
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import * as constants from '../../common/constants';
import * as db from '../../common/database';
import * as session from '../../account/session';
import * as fetch from '../../account/fetch';
import appIconSrc from '../images/logo.png';
const LOCALSTORAGE_KEY = 'insomnia::notifications::seen';
@ -174,7 +175,7 @@ class Toast extends React.PureComponent<Props, State> {
'toast--show': visible,
})}>
<div className="toast__image">
<GravatarImg email={notification.email || 'greg.schier@konghq.com'} size={100} />
<GravatarImg email={notification.email} fallback={appIconSrc} size={100} />
</div>
<div className="toast__content">
<p className="toast__message">{notification ? notification.message : 'Unknown'}</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB