Skip to content

Typo: "An Error Occured" should be "An Error Occurred" #208

@babblebey

Description

@babblebey

Problem

There's a spelling error in the error message displayed when jAI fails to generate a definition. "Occured" should be "Occurred".

Current Behavior

Error message displays: "An Error Occured while generating the definition for..."

Expected Behavior

Error message should display: "An Error Occurred while generating the definition for..."

Location

File: src/components/islands/jai-word-search.jsx
Line: 51

Proposed Solution

Fix the spelling error by changing "Occured" to "Occurred".

Current code:

<p className="font-medium text-red-800">
  An Error Occured while generating the definition for{" "}
  <span className="font-bold">{word}</span>.
</p>

Should become:

<p className="font-medium text-red-800">
  An Error Occurred while generating the definition for{" "}
  <span className="font-bold">{word}</span>.
</p>

Steps to Reproduce

  1. Navigate to a page that uses jAI word search
  2. Trigger an error condition (e.g., network failure)
  3. Observe the misspelled error message

Additional Context

This is a good first issue because:

  • ✅ Simple spelling fix
  • ✅ Improves user experience and professionalism
  • ✅ Easy to identify and fix
  • ✅ No complex logic involved

Definition of Done

  • Fix spelling error from "Occured" to "Occurred"
  • Verify error message displays correctly
  • Test that error functionality still works as expected

Metadata

Metadata

Assignees

Labels

↗️ medium priorityThis issue is crucial🐛 bugSomething isn't workinggood first issueGood for newcomershacktoberfestRelated to hacktoberfest✨jaiIssues, PRs or questions related to the ✨jAI module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions