fix unlock reward button on rewards page

This commit is contained in:
Sean Yesmunt 2019-11-20 18:01:14 -05:00
parent 0ad01e2444
commit 1a3eb38e0b

View file

@ -1,4 +1,5 @@
// @flow
import * as PAGES from 'constants/pages';
import React from 'react';
import CreditAmount from 'component/common/credit-amount';
import Button from 'component/button';
@ -27,7 +28,13 @@ function RewardAuthIntro(props: Props) {
and security updates.
</I18nMessage>
}
actions={<Button button="primary" navigate="/$/rewards" label={__('Unlock Rewards')} />}
actions={
<Button
button="primary"
navigate={`/$/${PAGES.AUTH}?redirect=/$/${PAGES.REWARDS}`}
label={__('Unlock Rewards')}
/>
}
/>
);
}