Skip to content

Commit a8e79a4

Browse files
committed
lint
1 parent 6ee1bbd commit a8e79a4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

client/app/bundles/system/admin/admin/components/forms/MarketplaceAllowlistRuleForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ const MarketplaceAllowlistRuleForm = ({
101101
<Prompt
102102
cancelDisabled={submitting}
103103
onClickPrimary={submit}
104-
primaryDisabled={submitting || value.trim() === ''}
105104
onClose={handleClose}
106105
open={open}
106+
primaryDisabled={submitting || value.trim() === ''}
107107
primaryLabel={t(translations.add)}
108108
title={t(translations.title)}
109109
>

spec/factories/course_assessment_marketplace_allowlist_rules.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
FactoryBot.define do
33
factory :course_assessment_marketplace_allowlist_rule,
44
class: 'Course::Assessment::Marketplace::AllowlistRule' do
5+
# Default to a self-contained email-domain rule so the bare factory is valid under
6+
# `factory_bot:lint`. Traits below override `rule_type` (and supply any needed association).
7+
rule_type { :email_domain }
8+
email_domain { 'schools.gov.sg' }
9+
510
trait :for_user do
611
rule_type { :user }
712
association :user

0 commit comments

Comments
 (0)