address lint issues

This commit is contained in:
Mutasem 2021-07-02 14:16:14 +02:00
parent 37d11ff71f
commit e54a7a121b
2 changed files with 7 additions and 3 deletions

View file

@ -614,7 +614,7 @@ a.logo {
.gift-container {
display: flex;
justify-content: end;
justify-content: flex-start;
align-items: center;
height: 100%;
width: 100%;

View file

@ -20,8 +20,12 @@ export const showMessage = mixins(externalHooks).extend({
if (config && config.closeOnClick) {
const cb = config.onClick;
config.onClick = () => {
notification && notification.close();
cb && cb();
if (notification) {
notification.close();
}
if (cb) {
cb();
}
};
}