Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hujambo-dunia committed Nov 14, 2023
1 parent 1b89fa3 commit 9a9bfab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/components/Form/FormRepeat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ interface Input {
title: string;
min: number;
default: number;
max: number|string;
max: number | string;
help?: string;
cache: Array<Record<string, unknown>>;
}
const maxRepeats = computed(() => {
return (typeof props.input.max === "number") ? props.input.cache?.length >= props.input.max : false;
return typeof props.input.max === "number" ? props.input.cache?.length >= props.input.max : false;
});
const props = defineProps({
Expand Down Expand Up @@ -159,8 +159,6 @@ const { keyObject } = useKeyedObjects();
<FontAwesomeIcon icon="plus" class="mr-1" />
<span data-description="repeat insert">Insert {{ props.input.title || "Repeat" }}</span>
</b-button>
<div v-if="maxRepeats">
Maximum number of {{ props.input.title || "Repeat" }} fields reached
</div>
<div v-if="maxRepeats">Maximum number of {{ props.input.title || "Repeat" }} fields reached</div>
</div>
</template>

0 comments on commit 9a9bfab

Please sign in to comment.