@@ -76,6 +76,7 @@ export default function InviteCohort() {
7676 generateInviteCodes,
7777 getPendingTransactions,
7878 getInvites,
79+ getAndUpdatePoint,
7980 } = useRoller();
8081 const { contracts }: any = useNetwork();
8182 const { syncControlledPoints }: any = usePointCache();
@@ -195,6 +196,7 @@ export default function InviteCohort() {
195196 try {
196197 await generateInviteCodes(numInvites);
197198 getPendingTransactions();
199+ getAndUpdatePoint(point.value);
198200 pop();
199201 } catch (error) {
200202 // TODO: error is not used anywhere on the UI
@@ -209,6 +211,8 @@ export default function InviteCohort() {
209211 getPendingTransactions,
210212 pop,
211213 setInviteGeneratingNum,
214+ getAndUpdatePoint,
215+ point,
212216 ]);
213217
214218 const downloadCsv = useCallback(() => {
@@ -467,14 +471,21 @@ export default function InviteCohort() {
467471 )}
468472 </BodyPane>
469473 </Window>
470− {showAddMoreButton && (
474+ {showAddMoreButton ? (
471475 <Button
472476 onClick={() => setShowInviteForm(true)}
473477 className="add-more"
474478 accessory={<Icon icon="ChevronEast" />}>
475479 Add More
476480 </Button>
477− )}
481+ ) : point.l2Quota < 1 ? (
482+ <Box className="invite-limit-message">
483+ You have hit your weekly invite limit. You will be able to generate
484+ another
485+ <strong>{` ${config?.rollerQuota}`}</strong> invites on
486+ <strong>{` ${ddmmmYYYY(nextQuotaTime)}`}</strong>.
487+ </Box>
488+ ) : null}
478489 <LoadingOverlay loading={loading} text={generatingCodesText} />
479490 </View>
480491 );