Hey everyone! I am currently watching the Hackin’ on The Internet Computer | ep.3 and I am writing the exact same code.
When I “dfx build” it throws an error that has to do with this part of my code:
public query func get(id0: Nat): async Entry {
func isEq(entry: Entry): Bool {
entry.id == id0;
};
Array.find(entries, isEq); //Here is the error’s line.
};
Error: Type error expression of type ?Entry cannot produce.
Can you suggest a solution?