getClaimTypeText

This commit is contained in:
zeppi 2021-08-17 16:57:31 -04:00
parent c6cbd3f2d3
commit 7074987a64

View file

@ -152,7 +152,7 @@ function WalletSendTip(props: Props) {
const [activeTab, setActiveTab] = React.useState(claimIsMine ? TAB_BOOST : TAB_LBC);
function setClaimTypeText() {
function getClaimTypeText() {
if (claim.value_type === 'stream') {
return __('Content');
} else if (claim.value_type === 'channel') {
@ -165,7 +165,7 @@ function WalletSendTip(props: Props) {
return __('Claim');
}
}
const claimTypeText = setClaimTypeText();
const claimTypeText = getClaimTypeText();
let iconToUse;
let explainerText = '';