Fix new tip detection (#3265)
This commit is contained in:
parent
872f4b5ffd
commit
4e82a837ab
@ -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 {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user