Skip to content

Commit 6222876

Browse files
Fix typos in comments (#9815)
Co-authored-by: Bojun Chai <bojunchai@microsoft.com>
1 parent 3f6bbfc commit 6222876

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/core/src/fields/types/bytes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export function bytesScalar(opts: {
257257
// so that when you're doing a mutation in a resolver, you can just pass in a Uint8Array directly
258258
if (value instanceof Uint8Array) {
259259
// duplicate it though to avoid any weirdness with the array being mutated
260-
// + ensuring that if you pass in a Buffer, resolvers recieve a normal Uint8Array
260+
// + ensuring that if you pass in a Buffer, resolvers receive a normal Uint8Array
261261
return Uint8Array.from(value)
262262
}
263263
if (typeof value !== 'string') {

packages/core/src/fields/types/calendarDay/views/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function Field(props: FieldProps<typeof controller>) {
9999
}
100100

101101
function validate(value: Value, isRequired: boolean, label: string): string | undefined {
102-
// if we recieve null initially on the item view and the current value is null,
102+
// if we receive null initially on the item view and the current value is null,
103103
// we should always allow saving it because:
104104
// - the value might be null in the database and we don't want to prevent saving the whole item because of that
105105
// - we might have null because of an access control error

packages/core/src/fields/types/timestamp/views/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function validate(
103103
): string | undefined {
104104
const isEmpty = !value.value
105105

106-
// if we recieve null initially on the item view and the current value is null,
106+
// if we receive null initially on the item view and the current value is null,
107107
// we should always allow saving it because:
108108
// - the value might be null in the database and we don't want to prevent saving the whole item because of that
109109
// - we might have null because of an access control error

packages/core/src/types/schema/scalars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const Hex = new GraphQLScalarType({
5353
// so that when you're doing a mutation in a resolver, you can just pass in a Uint8Array directly
5454
if (value instanceof Uint8Array) {
5555
// duplicate it though to avoid any weirdness with the array being mutated
56-
// + ensuring that if you pass in a Buffer, resolvers recieve a normal Uint8Array
56+
// + ensuring that if you pass in a Buffer, resolvers receive a normal Uint8Array
5757
return Uint8Array.from(value)
5858
}
5959
if (typeof value !== 'string') {

0 commit comments

Comments
 (0)