Fix new tip detection (#3265)

This commit is contained in:
Jaco Greeff 2020-07-25 11:16:17 +02:00 committed by GitHub
parent 872f4b5ffd
commit 4e82a837ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import styled from 'styled-components';
import { AddressSmall, AddressMini, Expander, Icon, TxButton } from '@polkadot/react-components';
import { useAccounts } from '@polkadot/react-hooks';
import { BlockToTime, FormatBalance } from '@polkadot/react-query';
import { formatNumber, isBoolean } from '@polkadot/util';
import { formatNumber } from '@polkadot/util';
import { useTranslation } from '../translate';
import TipClose from './TipClose';
@ -34,7 +34,7 @@ interface TipState {
}
function isCurrentTip (tip: OpenTip | OpenTipTo225): tip is OpenTip {
return isBoolean((tip as OpenTip).findersFee);
return !!(tip as OpenTip)?.findersFee;
}
function Tip ({ bestNumber, className = '', hash, isMember, members, tip }: Props): React.ReactElement<Props> | null {

View File

@ -102,7 +102,7 @@ export default React.memo(styled(Button)`
}
.ui--Button-overlay {
background: rgba(245, 244, 243, 0.75);
background: rgba(253, 252, 251, 0.75);
bottom: 0;
left: 0;
position: absolute;