Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/OpenQDev/OpenQ-Frontend
Browse files Browse the repository at this point in the history
…into staging
  • Loading branch information
FlacoJones committed Mar 20, 2023
2 parents 0993e6c + fafd369 commit f0ac025
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions components/Layout/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ const Navigation = () => {

useEffect(() => {
const getNotificationCookie = async () => {
const signedKnockTokenCookie = await window?.cookieStore?.get('signed_knock_token');
setNotificationToken(signedKnockTokenCookie?.value);
// regex for signed_knock_token cookie
const signedKnockTokenCookie = document.cookie.match(/(signed_knock_token=)(.*?)+/)[0].slice(19);

console.log(signedKnockTokenCookie);
setNotificationToken(signedKnockTokenCookie);
};

getNotificationCookie();
Expand Down
2 changes: 2 additions & 0 deletions components/Notifications/NotificationBell.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const NotificationBell = ({ userId, notificationToken }) => {

return (
<KnockFeedProvider
colorMode='dark'
apiKey={process.env.NEXT_PUBLIC_NOTIFICATIONS_PUBLIC_KEY}
feedId={process.env.NEXT_PUBLIC_NOTIFICATIONS_CHANNEL_ID}
userToken={notificationToken}
Expand All @@ -24,6 +25,7 @@ const NotificationBell = ({ userId, notificationToken }) => {
<NotificationIconButton ref={notifButtonRef} onClick={() => setIsVisible(!isVisible)} />
<NotificationFeedPopover
buttonRef={notifButtonRef}
className='bg-red-500'
isVisible={isVisible}
onNotificationClick={(item) => notificationClicked(item)}
onClose={() => setIsVisible(false)}
Expand Down
4 changes: 2 additions & 2 deletions pages/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ function Batch() {
} = transactionData;

try {
const { decimals } = await appState.tokenClient.getToken(payoutTokenAddress);
console.log('decimals', decimals)
const { decimals } = await appState.tokenClient.getToken(ethers.utils.getAddress(payoutTokenAddress));
console.log('decimals', decimals);

const newPayoutSchedule = convertPayoutScheduleToBigInt(payoutSchedule, decimals);

Expand Down

0 comments on commit f0ac025

Please sign in to comment.