Skip to content

Commit

Permalink
fix: change id of Feedback type to UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
devahmedshendy committed Sep 22, 2024
1 parent fa24d45 commit 602a6e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Sources/FeedbackKit/Feedback.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
struct Feedback: Identifiable, Hashable {
var id: String { title }
import Foundation

struct Feedback: Identifiable, Hashable, Codable {
var id: UUID = .init()
let type: FeedbackType
let title: String
let description: String
Expand Down Expand Up @@ -37,7 +39,7 @@ extension Feedback {
}
}

enum FeedbackState {
enum FeedbackState: Codable {
case open
case closed
}

0 comments on commit 602a6e7

Please sign in to comment.