Minor fix suggestion: Default to "TAB_BOOST" when supporting own claims

Someone mentioned about odysee.com showing "tip" related text when supporting own claim. Now it should default to "Boost" related text for own claims.

L167: Not edited but not sure if "claimIsMine" is needed there any more.
This commit is contained in:
keikari 2021-07-12 21:42:20 +03:00 committed by jessopb
parent 70af46149d
commit 08dd1cbf0b

View file

@ -147,7 +147,7 @@ function WalletSendTip(props: Props) {
const noBalance = balance === 0; const noBalance = balance === 0;
const tipAmount = useCustomTip ? customTipAmount : presetTipAmount; const tipAmount = useCustomTip ? customTipAmount : presetTipAmount;
const [activeTab, setActiveTab] = React.useState(TAB_LBC); const [activeTab, setActiveTab] = React.useState(claimIsMine ? TAB_BOOST : TAB_LBC);
let iconToUse, explainerText; let iconToUse, explainerText;
if (activeTab === TAB_BOOST) { if (activeTab === TAB_BOOST) {