Skip to content

Commit 95e946f

Browse files
committed
Merge branch 'staging' of https://github.com/OpenQDev/OpenQ-Frontend into staging
2 parents 0993e6c + fafd369 commit 95e946f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

components/Layout/Navigation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ const Navigation = () => {
2626

2727
useEffect(() => {
2828
const getNotificationCookie = async () => {
29-
const signedKnockTokenCookie = await window?.cookieStore?.get('signed_knock_token');
30-
setNotificationToken(signedKnockTokenCookie?.value);
29+
// regex for signed_knock_token cookie
30+
const signedKnockTokenCookie = document.cookie.match(/(signed_knock_token=)(.*?)+/)[0].slice(19);
31+
32+
console.log(signedKnockTokenCookie);
33+
setNotificationToken(signedKnockTokenCookie);
3134
};
3235

3336
getNotificationCookie();

components/Notifications/NotificationBell.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const NotificationBell = ({ userId, notificationToken }) => {
1515

1616
return (
1717
<KnockFeedProvider
18+
colorMode='dark'
1819
apiKey={process.env.NEXT_PUBLIC_NOTIFICATIONS_PUBLIC_KEY}
1920
feedId={process.env.NEXT_PUBLIC_NOTIFICATIONS_CHANNEL_ID}
2021
userToken={notificationToken}
@@ -24,6 +25,7 @@ const NotificationBell = ({ userId, notificationToken }) => {
2425
<NotificationIconButton ref={notifButtonRef} onClick={() => setIsVisible(!isVisible)} />
2526
<NotificationFeedPopover
2627
buttonRef={notifButtonRef}
28+
className='bg-red-500'
2729
isVisible={isVisible}
2830
onNotificationClick={(item) => notificationClicked(item)}
2931
onClose={() => setIsVisible(false)}

pages/batch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ function Batch() {
8484
} = transactionData;
8585

8686
try {
87-
const { decimals } = await appState.tokenClient.getToken(payoutTokenAddress);
88-
console.log('decimals', decimals)
87+
const { decimals } = await appState.tokenClient.getToken(ethers.utils.getAddress(payoutTokenAddress));
8988

9089
const newPayoutSchedule = convertPayoutScheduleToBigInt(payoutSchedule, decimals);
9190

@@ -124,7 +123,6 @@ function Batch() {
124123

125124
const mintBountyTemplateCopy = _.cloneDeep(mintBountyTemplate);
126125
mintBountyTemplateCopy.transactions = transactions;
127-
console.log(transactions);
128126

129127
setMintBountyBatchData(mintBountyTemplateCopy);
130128
};

0 commit comments

Comments
 (0)