Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Consultation-portal): KAM-2800 user cannot deregister from "all" cases #17113

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import React from 'react'
import {
Stack,
Table as T,
Text,
useBreakpoint,
} from '@island.is/island-ui/core'
import { Stack, Table as T, Text } from '@island.is/island-ui/core'
import { mapIsToEn, sortLocale } from '../../../../utils/helpers'
import { SubscriptionArray } from '../../../../types/interfaces'
import { Area } from '../../../../types/enums'
Expand Down Expand Up @@ -37,7 +32,6 @@ const SubscriptionTable = ({
searchValue,
isMySubscriptions,
}: Props) => {
const { md: mdBreakpoint } = useBreakpoint()
const { Table, Body } = T
const loc = localization.subscriptionTable
const mappedCurrentTab = mapIsToEn[currentTab]
Expand All @@ -54,8 +48,13 @@ const SubscriptionTable = ({
data: thisData,
})

if (
const hasNoItemsToShow =
dataToRender.length === 0 &&
dontShowNew !== false &&
dontShowChanges !== false

advaniasteinar marked this conversation as resolved.
Show resolved Hide resolved
if (
hasNoItemsToShow &&
!subscribedToAllNewObj.checked &&
!subscribedToAllChangesObj.checked
) {
Expand Down
Loading